package com.currency.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@TableName(value = "wyt_advance_payment")
public class WytAdvancePayment{
    //提前付款申请状态  I-申请中 F-申请拒绝  S-完成申请
    public static final String STATUS_ING = "I";

    public static final String STATUS_FAILED = "N";

    public static final String STATUS_SUCCESS = "S";

    @ApiModelProperty(value = "提前付款id")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "关联运单ID")
    @TableField(value = "order_id")
    private String orderId;

    @ApiModelProperty(value = "关联运单ID")
    @TableField(value = "driver_id")
    private String driverId;

    @ApiModelProperty(value = "提前支付金额")
    @TableField(value = "amount")
    private Integer amount;

    @ApiModelProperty(value = "提前付款申请状态  I-申请中 F-申请拒绝  S-完成申请")
    @TableField(value = "status")
    private String status;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_datetime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createDatetime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_datetime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateDatetime;

}